package com.huatai.verity.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @program: ht-system
 * @description: 授权管理实体类
 * @author: songxiude
 * @create: 2023-07-24 16:55
 **/
@Data
@TableName("ht_auth_manage")
@ApiModel(value = "授权管理实体",description = "授权管理实体类")
public class AuthManage {

	@ApiModelProperty("主键id")
	private Long id;

	@ApiModelProperty("应用服务id")
	private Long appServiceId;

	@ApiModelProperty("授权对象id")
	private Long authObjectId;

	@ApiModelProperty("创建人id")
	private String createUser;

	@ApiModelProperty("更新人id")
	private String updateUser;

	@ApiModelProperty(value = "授权开始时间",required = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime authStartTime;

	@ApiModelProperty(value = "授权结束时间",required = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime authEndTime;

	@ApiModelProperty("授权类型1代表license2代表token")
	private Integer authType;

	@ApiModelProperty(value = "系统授权（客户端提供）",required = true)
	private String systemCode;

	@ApiModelProperty(value = "授权串系统生成",required = true)
	private String ti;

	@ApiModelProperty(value = "授权码系统生成",required = true)
	private String authCode;

	@ApiModelProperty(value = "信息备注")
	private String remark;

	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间",hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	@TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty(value = "更新时间",hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime updateTime;
}
